<!-- DataTables -->
<link rel="stylesheet"
	  href="./app/lib/datatables/media/css/dataTables.bootstrap.css">

<div ng-controller="memberinvoice as gt">
<section class="content-header">
	<h1>
		{{title}}<small></small>
	</h1>
</section>
<section class="content">
	<div class="box box-default">
		<div class="col-md-12">
			<div class="box-body">
				<alertdanger></alertdanger>
				<alertsuccess></alertsuccess>
				<form role="form" >
					<div class="box-body">
						<div ng-show="membershow">
						<div class="form-group">
							<div class="box box-success">
								<div class="box-header with-border">
									<h3 class="box-title">搜索需要添加地址的会员</h3>
								</div>
							</div>
							<div class="col-xs-12">
								<div class="box">
									<div class="box-header"></div>
									<div class="box-body" >
										<table datatable="" dt-options="gt.dtOptions"
											   dt-columns="gt.dtColumns"
											   dt-instance="gt.dtInstance"
											   class="table table-striped table-bordered"></table>
									</div>
								</div>
							</div>
						</div>

						<div class="col-xs-12">
							<div class="box">
								<div class="box-header">
									<h3 class="box-title">已选择的会员</h3>
								</div><!-- /.box-header -->
								<div class="box-body table-responsive no-padding">
									<table class="table table-hover">
										<tr>
											<th>会员编号</th>
											<th>头像</th>
											<th>账号</th>
											<th>操作</th>
										</tr>
										<tr ng-repeat="at in selectedmembers track by $index">
											<td>{{at.id}}</td>
											<td><img class="img-responsive pad" style="width: 50px;height: 50px;" src="{{at.mainimg}}" alt="Photo"></td>
											<td>{{at.loginname}}</td>
											<td><button ng-click="removeselectmember($index);" class='btn btn-box-tool'>删除</button></td>
										</tr>

									</table>
								</div><!-- /.box-body -->
							</div><!-- /.box -->
						</div>
						</div>

						<div class="form-group">
							<label>
								<input type="radio" ng-model="invtype" ng-value="1" class="flat-red" ng-checked="true">
								增值税专票
							</label>
							<label>
								<input type="radio"  ng-model="invtype" ng-value="2" class="flat-red">
								增值税普票
							</label>

						</div>

						<div class="form-group">
							<label>抬头</label> <input maxlength="45" required="required" ng-model="invtitle"
								class="form-control" type="text" placeholder="请输入抬头" value="">
						</div>
						<div class="form-group">
							<label>公司名称</label> <input maxlength="255" required="required" ng-model="companyname"
													   class="form-control" type="text" placeholder="请输入公司名称" value="">
						</div>
						<div class="form-group">
							<label>税号</label> <input maxlength="20" required="required" ng-model="taxnumber"
													 class="form-control" type="text" placeholder="请输入税号" value="">
						</div>
						<div class="form-group">
							<label>开户行</label> <input maxlength="45" required="required" ng-model="bankname"
								class="form-control" type="text" placeholder="请输入开户行" value="">
						</div>
						<div class="form-group">
							<label>开户行地址</label> <input maxlength="255" required="required" ng-model="bankaddress"
													  class="form-control" type="text" placeholder="请输入开户行地址" value="">
						</div>
						<div class="form-group">
							<label>移动电话</label> <input maxlength="20" required="required" ng-model="mobile"
								class="form-control" type="text" placeholder="请输入移动电话" value="">
						</div>

						<div class="form-group">
		                    <label>
		                      <input type="radio" ng-model="status" ng-value="1" class="flat-red" ng-checked="true">
		                      启用
		                    </label>
		                    <label>
		                      <input type="radio"  ng-model="status" ng-value="0" class="flat-red">
		                      禁用
		                    </label>
		               
	                  	</div>
					</div>
					<div class="box-footer">
						<button ng-show="savebtn.show"type="button" class="btn btn-primary" ng-click="save();">保存</button>
						<button ng-show="updatebtn.show" type="button" class="btn btn-primary" ng-click="update();">更新</button>
					</div>
				</form>
			</div>
		</div>
		<div class="box-footer"></div>
	</div>
</section>
</div>